package com.jm.bishe.mapper;

import com.jm.bishe.entity.Room;
import com.jm.bishe.entity.RoomAdd;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface RoomMapper {

    Room queryRoomById(String roomId);

    int queryLocking(String roomId);

    List<String> queryRoomAvailable(String roomType);

    List<Room> queryRoomByType(String roomType);

    List<Room> queryAllRoom();

    int addRoom(Room room);

    int lockRoom(@Param("isLocking")int isLocking,@Param("roomId")String roomId);

    int roomCheckIn(@Param("isCheckIn")int isCheckIn,@Param("roomId")String roomId);

    String queryPrice(String roomId);
}
